import type { App } from 'vue'
import { permission } from './permission'
import { loading } from './loading'
import { copy } from './copy'
import { debounce } from './debounce'
import { throttle } from './throttle'

// 注册所有指令
export const setupDirectives = (app: App) => {
  app.directive('permission', permission)
  app.directive('loading', loading)
  app.directive('copy', copy)
  app.directive('debounce', debounce)
  app.directive('throttle', throttle)
}
